﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="Grade2.aspx.cs" Inherits="finalexam.WebForm4" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div style="height: 450px; width: 990px">
        <div style="float: right; width: 140px;">

                <asp:DropDownList ID="DropDownList1" runat="server" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
                    <asp:ListItem>春天</asp:ListItem>
                    <asp:ListItem>夏天</asp:ListItem>
                    <asp:ListItem>秋天</asp:ListItem>
                    <asp:ListItem>冬天</asp:ListItem>
                </asp:DropDownList>
                <asp:Button ID="Button1" runat="server"  Text="确认" OnClick="Button1_Click" />

            </div>
        <br />
        <br />
        <asp:Label ID="Label15" runat="server" Font-Bold="True" Font-Size="Large" ForeColor="#FF3300" Text="查看全部成绩："></asp:Label>
        <asp:HyperLink ID="HyperLink4" runat="server" Font-Italic="True" Font-Size="Large" Font-Strikeout="False" Font-Underline="True" ForeColor="#FF3300" NavigateUrl="~/Grade.aspx">返回&gt;</asp:HyperLink>
        <br />
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:dhd2014112134ConnectionString %>" SelectCommand="SELECT Grade3.No, student.Name, Cource.Cname, Grade3.Sem, Grade3.Grade FROM Grade3 INNER JOIN student ON Grade3.No = student.No INNER JOIN Cource ON Grade3.Cno = Cource.Cno"></asp:SqlDataSource>
        <br />
        <br />
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" Width="598px" BackColor="White" BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" CellPadding="4">
            <Columns>
                <asp:BoundField DataField="No" HeaderText="No" SortExpression="No" />
                <asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" />
                <asp:BoundField DataField="Cname" HeaderText="Cname" SortExpression="Cname" />
                <asp:BoundField DataField="Sem" HeaderText="Sem" SortExpression="Sem" />
                <asp:BoundField DataField="Grade" HeaderText="Grade" SortExpression="Grade" />
            </Columns>
            <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
            <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
            <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
            <RowStyle BackColor="White" ForeColor="#003399" />
            <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
            <SortedAscendingCellStyle BackColor="#EDF6F6" />
            <SortedAscendingHeaderStyle BackColor="#0D4AC4" />
            <SortedDescendingCellStyle BackColor="#D6DFDF" />
            <SortedDescendingHeaderStyle BackColor="#002876" />
        </asp:GridView>
        </div>
    </asp:Content>
